package com.health.mapper;

import com.health.domain.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author ghy
 * @version 1.0
 * @since 2025-06-20 19:49
 */
@Mapper
public interface UserMapper {

    /**
     * 根据用户名查询
     * @param username 用户名
     * @return 用户信息
     */
    @Select("select * from t_user where username = #{username}")
    User selectByUsername(String username);

}
